package initialize

import (
	"log"

	"go.uber.org/zap"
)

//// NewZapLogger creates a new zap logger
//func NewZapLogger() (*zap.Logger, error) {
//	cfg := zap.NewDevelopmentConfig()
//	cfg.EncoderConfig.TimeKey = ""
//	return cfg.Build()
//}

func InitLogger() {
	logger, err := zap.NewDevelopment()
	if err != nil {
		log.Fatalf("cannot create logger: %v", err)
	}
	zap.ReplaceGlobals(logger)
}
